<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<ui:composition template="../../templates/template.xhtml">

	<ui:define name="title">
	 	Web Client Main 
	</ui:define>
	<ui:param name="page" value="home" />
	<ui:define name="header">
		<ui:include src="../../header.xhtml" />
		<f:loadBundle basename="us.gaaoc.framework.webapp.util.errorMessage" var="msgs"/>		
	</ui:define>
	<ui:define name="menu">
		<div align="center">	 
	 	<h:form id="mennuForm" >
		 	<br />
		 	<br />
		 	<h:commandButton value="Back" action="#{adminChildEnforcementCaseType.back}"
		 		 styleClass="buttonClass" immediate="true" />
			<br/>
			<br/>
			<br/>
			<h:commandButton value="Search by ..." action="#{adminChildEnforcementCaseType.gotoSearchPage}" styleClass="buttonClass" immediate="true" />
			<br />
			<br/>
			<br/>
			<br/>			
		</h:form>
		
	
		<p class="lefttext">Choose Filing Status View	</p>		
		<h:form>			
			<table>
				<tr>
					<td><h:selectOneListbox id="status"
						binding="#{adminChildEnforcementCaseType.statusUI}"
						immediate="true" required="true" /></td>
				</tr>
				<tr>
					<td><h:commandButton value="Submit"
						action="#{adminChildEnforcementCaseType.submitStatus}" /></td>
				</tr>
				<tr>
					<td>
						<h:message for="status" styleClass="error" />
					</td>
				</tr>
			</table>			
		</h:form>		
		<br />
		<br />
	</div>
	
	</ui:define>
	
	<ui:define name="body">
		<h:form>
		
			
			<h:panelGrid columns="1" width="98%" styleClass="outerTable"
				columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="Child Enforcement Filings Table" />
				</f:facet>
				<h:column>
					<t:dataTable renderedIfEmpty="false"  id="allPeople"
						value="#{adminChildEnforcementCaseType.childEnforcementFilingTableList}"
						var="childEnforcement" styleClass="iCubed" width="98%" 
						rows="10" rowIndexVar="rowNumber"
						preserveSort="true"
						sortColumn="#{adminChildEnforcementCaseType.filingSorter.sort}"
						sortAscending="#{adminChildEnforcementCaseType.filingSorter.ascending}"
						preserveDataModel="true">
						
						<h:column>
							<f:facet name="header">
								<h:outputText id="content" value="Content" />
							</f:facet>
							<h:outputLabel
								value="#{rowNumber+1}" />
						</h:column>
						 
						<h:column>
							<f:facet name="header">
								<h:outputText id="uuid" value="Uuid" />
							</f:facet>
							<h:outputText value="#{childEnforcement.uuid}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="instatiationTime" value="Received Date" />
							</f:facet>
							<h:outputText value="#{childEnforcement.instantiationDateTime}">
								<f:convertDateTime dateStyle="medium"
									timeZone="America/New_York" type="date" />
							</h:outputText>
						</h:column>
						<!-- 
						<h:column>
							<f:facet name="header">
								<h:outputText id="filerName" value="Filer Name" />
							</f:facet>
							<h:outputText value="#{childEnforcement.filerName}" />
						</h:column>
						 -->
						<h:column>
							<f:facet name="header">
								<h:outputText id="defendantName" value="Defendant Name" />
							</f:facet>
							<h:outputText value="#{childEnforcement.defendantName}" />
						</h:column>

						<h:column>
							<f:facet name="header">
								<h:outputText id="status" value="Status" />
							</f:facet>
							<h:outputText value="#{childEnforcement.status}" />
						</h:column>
						<!-- last event column -->
						<h:column>
							<f:facet name="header">
								<h:outputText id="lastEvent" value="Last Event" />
							</f:facet>
							<h:commandLink value="#{childEnforcement.eventType}"
								action="#{adminChildEnforcementCaseType.gotoHistoryPage}">
								<f:param name="caseUuid" value="#{childEnforcement.uuid}" />
							</h:commandLink>
						</h:column>
						<h:column>							
							<f:facet name="header">
							 <t:commandSortHeader columnName="eventDateTime" arrow="true">
								<h:outputText id="lastEventTime" value="Last Event Time" />
							</t:commandSortHeader>
							</f:facet>
							<h:outputText value="#{childEnforcement.eventDateTime}">
								<f:convertDateTime dateStyle="medium"
									timeZone="America/New_York" type="date" />
							</h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="CaseDetails" value="Case Details" />
							</f:facet>
							<h:commandLink value="Case Details"
								action="#{adminChildEnforcementCaseType.gotoCaseDetailPage}">
								<f:param name="case" value="#{childEnforcement}"
									binding="#{adminChildEnforcementCaseType.caseDetailsPageClicked}" />
							</h:commandLink>
						</h:column>
					</t:dataTable>
				</h:column>
				<!-- data scroller for data table   -->
				<h:column>
					<div align="center">
					<t:dataScroller fastStep="5"
						styleClass="scrollerTable" pageCountVar="pageCount"
						pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
						paginatorTableClass="paginator"
						paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
						for="allPeople">
						<f:facet name="first">
							<t:graphicImage url="/images/arrow-first.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="last">
							<t:graphicImage url="/images/arrow-last.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="previous">
							<t:graphicImage url="/images/arrow-previous.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="next">
							<t:graphicImage url="/images/arrow-next.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastforward">
							<t:graphicImage url="/images/arrow-ff.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastrewind">
							<t:graphicImage url="/images/arrow-fr.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
					</t:dataScroller> 
					</div>
				</h:column>  
				
			</h:panelGrid>
			
			
			
			<h:panelGrid columns="1" width="98%" styleClass="outerTable"
				columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="Child Enforcement Cleared Filings Table" />
				</f:facet>
				<h:column>
					
					<t:dataTable renderedIfEmpty="false"  id="allClearedCases"
						value="#{adminChildEnforcementCaseType.childEnforcementClearedFilingsTableList}"
						var="clearedCase" styleClass="iCubed" width="98%" 
						rows="10" rowIndexVar="rowNumber"
						preserveSort="true"
						sortColumn="#{adminChildEnforcementCaseType.filingSorter_Cleared.sort}"
						sortAscending="#{adminChildEnforcementCaseType.filingSorter_Cleared.ascending}"
						preserveDataModel="true">
						
						<h:column >
							<f:facet name="header">
								<h:outputText id="content" value="Content" />
							</f:facet>
							<h:outputLabel value="#{rowNumber+1}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="uuid"
									value="uuid" />
							</f:facet>
							<h:outputText
								value="#{clearedCase.uuid}">
								<f:convertDateTime 
										dateStyle="medium" 
										timeZone="America/New_York" 
										type="date"/>
							</h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="instantiationTime"
									value="Received Date" />
							</f:facet>
							<h:outputText
								value="#{clearedCase.instantiationDateTime}">
								<f:convertDateTime 
										dateStyle="medium" 
										timeZone="America/New_York" 
										type="date"/>
							</h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="defendantName" value="Defendant Name" />
							</f:facet>
							<h:outputText value="#{clearedCase.defendantName}" />
						</h:column>
						
						<h:column>
							<f:facet name="header">
								<h:outputText id="status" value="Status" />
							</f:facet>
							<h:outputText value="#{clearedCase.status}" />
						</h:column>						
						<!-- last event column -->
						<h:column>
							<f:facet name="header">
								<h:outputText id="lastEvent" value="Last Event" />
							</f:facet>
							<h:commandLink value="#{clearedCase.eventType}"   action="#{adminChildEnforcementCaseType.gotoHistoryPage}" >
				  			<f:param name="caseUuid" value="#{clearedCase.uuid}"  />   
							</h:commandLink> 
						</h:column>
						<h:column>
							<f:facet name="header">
								<t:commandSortHeader columnName="eventDateTime" arrow="true">
									<h:outputText id="lastEventTime" value="Last Event Time" />
								</t:commandSortHeader>
							</f:facet>
							<h:outputText
								value="#{clearedCase.eventDateTime}">
									<f:convertDateTime 
										dateStyle="medium" 
										timeZone="America/New_York" 
										type="date"/>
							</h:outputText>
						</h:column>		
						<h:column>
							<f:facet name="header">
								<h:outputText id="CaseDetails" value="Case Details" />
							</f:facet>
							<h:commandLink value="Case Details"   action="#{adminChildEnforcementCaseType.gotoCaseDetailPage}" >
				  			<f:param name="case" value="#{clearedCase}" binding="#{adminChildEnforcementCaseType.caseDetailsPageClicked_Cleared}" />
							</h:commandLink>
						</h:column>		
						<h:column>
							<f:facet name="header">
								<h:outputText id="Restore" value="Restore" />
							</f:facet>
							<h:commandLink value="Restore"   action="#{adminChildEnforcementCaseType.RestoreToNotCleared}" >
				  			<f:param name="case1" value="#{clearedCase}" binding="#{adminChildEnforcementCaseType.restoreClicked}" />
							</h:commandLink>
						</h:column>			
					</t:dataTable>
				
				</h:column>
				<!-- data scroller for data table   -->
				
				
				<h:column>
					<div align="center">
					<t:dataScroller fastStep="5"
						styleClass="scrollerTable" pageCountVar="pageCount"
						pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
						paginatorTableClass="paginator"
						paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
						for="allClearedCases">
						<f:facet name="first">
							<t:graphicImage url="/images/arrow-first.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="last">
							<t:graphicImage url="/images/arrow-last.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="previous">
							<t:graphicImage url="/images/arrow-previous.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="next">
							<t:graphicImage url="/images/arrow-next.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastforward">
							<t:graphicImage url="/images/arrow-ff.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastrewind">
							<t:graphicImage url="/images/arrow-fr.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
					</t:dataScroller> 
					</div>
				</h:column>
			</h:panelGrid>
						
			<!-- **************************************************************************************
			
					* Ready to Import Case Table *			
			
******************************************************************************************* -->
		
			<h:panelGrid columns="1" width="98%" styleClass="outerTable"
				columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="Ready To Import Filings Table" />
				</f:facet>
				<h:column>
					
		           	    <t:dataTable renderedIfEmpty="false"  id="allPeople_RTI"
						value="#{adminChildEnforcementCaseType.readyToImportFilingTableList}"
						var="readyToImport" styleClass="iCubed" width="98%" 
						rows="10" rowIndexVar="rowNumber"
						preserveSort="true"
						sortColumn="#{adminChildEnforcementCaseType.filingSorter_RTI.sort}"
						sortAscending="#{adminChildEnforcementCaseType.filingSorter_RTI.ascending}">
						
		           	    
		           	    
		           	    
						<h:column >
							<f:facet name="header">
								<h:outputText id="content" value="Content" />
							</f:facet>
							<h:outputLabel value="#{rowNumber+1}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="uuid"
									value="uuid" />
							</f:facet>
							<h:outputText
								value="#{readyToImport.uuid}">
								<f:convertDateTime 
										dateStyle="medium" 
										timeZone="America/New_York" 
										type="date"/>
							</h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="instantiationTime"
									value="Received Date" />
							</f:facet>
							<h:outputText
								value="#{readyToImport.instantiationDateTime}">
								<f:convertDateTime 
										dateStyle="medium" 
										timeZone="America/New_York" 
										type="date"/>
							</h:outputText>
						</h:column>
						<!-- 
						<h:column>
							<f:facet name="header">
								<h:outputText id="filerName" value="Filer Name" />
							</f:facet>
								<h:outputText value="#{readyToImport.filerName}" />
						</h:column>
						 -->
						<h:column>
							<f:facet name="header">
								<h:outputText id="defendantName" value="Defendant Name" />
							</f:facet>
							
							<h:outputText value="#{readyToImport.defendantName}" /> 
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="status" value="Status" />
							</f:facet>
							<h:outputText value="#{readyToImport.status}" />
						</h:column>
						
						<h:column>
							<f:facet name="header">
								<h:outputText id="lastEvent" value="Events Log" />
							</f:facet>
					    <h:commandLink value="#{readyToImport.eventType}"   action="#{adminChildEnforcementCaseType.gotoHistoryPage}" >
				  			<f:param name="caseUuid" value="#{readyToImport.uuid}"  />   
							</h:commandLink> 
						</h:column>
						<h:column>
							<f:facet name="header">
								<t:commandSortHeader columnName="eventDateTime" arrow="true">	
									<h:outputText id="lastEventTime" value="Last Event Time" />
								</t:commandSortHeader>
							</f:facet>
							<h:outputText
								value="#{readyToImport.eventDateTime}">
								<f:convertDateTime 
										dateStyle="medium" 
										timeZone="America/New_York" 
										type="date"/>
							</h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="filingID" value="Case Details" />
							</f:facet>
							<h:commandLink value="Case Details"   action="#{adminChildEnforcementCaseType.gotoCaseDetailPage}" >
				  				<f:param name="case2" value="#{readyToImport}" binding="#{adminChildEnforcementCaseType.caseDetailsPageClicked_RTI}" />
				  			</h:commandLink>
						</h:column>
						<!-- 
						<h:column>
							<f:facet name="header">
								<h:outputText id="clear" value="Clear" />
							</f:facet>
							<h:commandLink value="clear" action="#{clerkChildEnforcementCaseType.clearRecord}" >
								<f:param name="case" value="#{readyToImport}" binding="#{clerkChildEnforcementCaseType.clickedClear}" />
							</h:commandLink>
						</h:column>
						 -->
					</t:dataTable>
				</h:column>
				<!-- data scroller for data table   -->
				<h:column>
					<div align="center">
					<t:dataScroller fastStep="5"
						styleClass="scrollerTable" pageCountVar="pageCount"
						pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
						paginatorTableClass="paginator"
						paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
						for="allPeople_RTI">
						<f:facet name="first">
							<t:graphicImage url="/images/arrow-first.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="last">
							<t:graphicImage url="/images/arrow-last.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="previous">
							<t:graphicImage url="/images/arrow-previous.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="next">
							<t:graphicImage url="/images/arrow-next.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastforward">
							<t:graphicImage url="/images/arrow-ff.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastrewind">
							<t:graphicImage url="/images/arrow-fr.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
					</t:dataScroller> 
					</div>
				</h:column>  
			</h:panelGrid>
	
			 
		
			</h:form>
			
			<div align="center" >
			<h:form>
				 
			
			<h:message for="docketID" styleClass="errorClass"/>
			
			<br/>
			<h:outputLabel value="Please Enter the DocketID to Search Case Record" />
			<br/>
		
			<h:panelGrid columns="2">
			<h:outputLabel value="Docket ID " />
			<h:inputText id="docketID" value="#{adminChildEnforcementCaseType.docketID}" 
						binding="#{adminChildEnforcementCaseType.docketIDInput}" 
						validator="#{adminChildEnforcementCaseType.validateDocketID}" required="true"/>
			
			</h:panelGrid>
			<br />
			
			
			<br/>
			 <h:outputLabel value="#{adminChildEnforcementCaseType.noDetailsMessage}"  styleClass="intend20"  rendered="#{adminChildEnforcementCaseType.showMessage}"/>
			
			</h:form>
			</div>
	</ui:define>

</ui:composition>

</html>
